﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminUI/AdminUI.Master" AutoEventWireup="true"
    CodeBehind="AddPracticeUI.aspx.cs" Inherits="ELearningSystem.UI.AdminUI.AddPracticeUI" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style4
        {
            width: 671px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <h2>
            Add Practice
        </h2>
    </div>
    <div style="height: 340px">
        
        <table>
        <tr><td>Topic: </td><td class="style4"><asp:Label ID="topicLabel" runat="server"></asp:Label></td></tr>
        <tr><td>Content Title: </td><td class="style4">
            <asp:TextBox ID="titleTextBox" runat="server" style="margin-bottom: 0px" 
                Width="298px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ErrorMessage="Title shouldn't be empty!" ForeColor="Red" 
                ValidationGroup="practiceValidation"></asp:RequiredFieldValidator>
            </td></tr>
            <tr>
           
                <td>
                    Question :
                </td>
                <td class="style4">
                    <asp:TextBox ID="questoinTextBox" runat="server" Width="300"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ErrorMessage="Question is not given!" ForeColor="Red" 
                        ValidationGroup="practiceValidation"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Answers (Seperated by Enters) :
                </td>
                <td class="style4">
                    <asp:TextBox ID="answersTextBox" runat="server" Width="300" TextMode="MultiLine"
                        Rows="6" Text="(Seperated by Enters)"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ErrorMessage="Answer of the question is not given!" ForeColor="Red" 
                        ValidationGroup="practiceValidation"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Correct Answer(s) :
                </td>
                <td class="style4">
                    <asp:TextBox ID="correctAnswersTextBox" runat="server" Width="300" Text="(Seperated by Commas)"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ErrorMessage="The correct answers is not denoted!" ForeColor="Red" 
                        ValidationGroup="practiceValidation"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td align="center" class="style4">
                    <asp:Button ID="saveLinkButton" runat="server" Text="Save" 
                        onclick="saveLinkButton_Click" style="margin-left: 0px" 
                        ValidationGroup="practiceValidation"></asp:Button>
                    <asp:Button ID="doneButton" runat="server" onclick="doneButton_Click" 
                        Text="Done" />
                    <asp:Label ID="saveResponseLabel" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
